<?php
namespace Home\Model;
use Think\Model\ViewModel;

class ClassViewModel extends ViewModel{
    protected $viewFields = array(
        "class"=>array("cla_id","cla_name","cla_stu_num","cla_start","cla_end","is_filed","is_auto","cla_code"),
        "course"=>array(
            "cou_id"=>"cou_id",
            "cou_name"=>"cou_name",
            "teacher_tea_id"=>"teacher_tea_id",
            '_on'=>'class.cou_id=course.cou_id'
        ),
    );
}